print('hello worlds')
#print(len(str(2**1000000)))
import random
x=random.random()
print(x)
#continuous comparison
print(34<5<10)

print('str $ repr')
print(1/3)
print(str(1/3))
print(repr(1/3))

print('devision')
print(10/3)
print(10//3)
print(10//-3)

print('floor $ trunc')
from math import floor
from math import trunc
print(floor(-3.4))
print(trunc(-3.4))
print(floor(3.4))
print(trunc(3.4))

print("scale")
print(int('64'),int('40',16),int('20',8))

#infinite
print(0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)

print('bit operation')
x=0b10010
print(x.bit_length())
print(x)
print(x<<2)
print(x|0b00001)
print(x&0b10000)
print(x)

print(dir(x))

import math
print(math.pi,math.e)
print(math.sin(30*(math.pi/180)))
print(dir(math))

print (round(2.34567234,3))


print(random.randint(1,20))
print(dir(random))


print("decimal")
import decimal

decimal.getcontext().prec=4;
print(decimal.Decimal('1.01'))
y=decimal.Decimal('1.01')
print(y)
print(decimal.Decimal('8.0')/decimal.Decimal('7.0'))
print(decimal.Decimal(1.111111)-decimal.Decimal(0.111111))


print("fraction")
import fractions

z= fractions.Fraction(1,3)
print(z)

print(0.1+0.1+0.1-0.3)
print(decimal.Decimal('0.1')+decimal.Decimal('0.1')+decimal.Decimal('0.1')-decimal.Decimal('0.3'))
print(fractions.Fraction(1,10)+fractions.Fraction(1,10)+fractions.Fraction(1,10)-fractions.Fraction(3,10))

print((4.0/3).as_integer_ratio())
print(4.0/3)
print(fractions.Fraction((4.0/3)))
print(6004799503160661/4503599627370496)

print('set')
s = set("abcde")
print(s)
t = set('cdefgh')
print(t)


print(s|t)
print(s&t)
print(s-t)
print(s^t)
s.update(t)
print(s)
s.remove('f')
print(s)

for item in s:print(item)
print(s|{'ff','y'})

u=set(['a','b'])
print(u)
print(u|{'b','c'})

print('bool')



print('a' in u)
i=0
while (i<10):
    i=i+1
    print(i)
print(i)

print(isinstance(True, int))


print((1/3.0).as_integer_ratio())
print(fractions.Fraction(1/3))

print(6004799503160661/18014398509481984)

x=True
print(x)
print(x+1)

























